// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class b : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<b, MasterDbContextLocator>
    {

        public int GenRecordId { get; set; }
        public int? AreaId { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public int? BaseStationID { get; set; }
        public string BaseStationName { get; set; }
        public string Extension { get; set; }
        public DateTime? GenStart { get; set; }
        public DateTime? GenStop { get; set; }
        public decimal? RunningPeriod { get; set; }
        public decimal? KWpower { get; set; }
        public decimal? OilConsume { get; set; }
        public string GeneratorTypeNo { get; set; }
        public decimal? RatedPower { get; set; }
        public decimal? GenFee { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
        public bool? SEEMINGMAIN { get; set; }
        public string GenReason { get; set; }
        public string GenImg1 { get; set; }
        public string GenImg2 { get; set; }
        public string GenImg3 { get; set; }
        public string LAC { get; set; }
        public string CellID { get; set; }
        public string BaseStationAddr { get; set; }
        public short? CSQ { get; set; }
        public int? GenRecordStatus { get; set; }
        public double? EXTBATVOLT { get; set; }
        public double? LIBATVOLT { get; set; }
        public double? INPUT1VOLT { get; set; }
        public double? INPUT2VOLT { get; set; }
        public double? INPUT3VOLT { get; set; }
        public bool? RELAY1STATUS { get; set; }
        public bool? RELAY2STATUS { get; set; }
        public bool? RELAY3STATUS { get; set; }
        public bool? RELAY4STATUS { get; set; }
        public decimal? KWENERGY { get; set; }
        public int? CRANKTIMES { get; set; }
        public int? GENRUNTIMES { get; set; }
        public decimal? GENRUNPERIOD { get; set; }
        public string GPSPOSITION { get; set; }
        public bool? BATLOWVOLTALARM { get; set; }
        public double? GpsLat { get; set; }
        public double? GpsLgt { get; set; }
        public double? BasLat { get; set; }
        public double? BasLgt { get; set; }
        public double? GpsLatBD { get; set; }
        public double? GpsLgtBD { get; set; }
        public double? BasLatBD { get; set; }
        public double? BasLgtBD { get; set; }
        public string Alarms { get; set; }
        public string DTUID { get; set; }
        public string dtuAlias { get; set; }
        public string GensetNum { get; set; }
        public decimal? LoadFuelConsume { get; set; }
        public decimal? EmptyFuleConsume { get; set; }
        public bool? IsEmptyRunning { get; set; }
        public bool? IsManual { get; set; }
        public string AuditContent { get; set; }
        public string AuditPerson { get; set; }
        public decimal? GenFeeByHour { get; set; }
        public string BaseStationCode { get; set; }
        public string AttFile { get; set; }
        public double? GENVOLTL1 { get; set; }
        public double? TOTCURRENT { get; set; }
        public string CompanyCode { get; set; }
        public int? MigrationId { get; set; }
        public string BaseStationTTCode { get; set; }
        public string BaseStationCodeManual { get; set; }
        public string BaseStationNameManual { get; set; }
        public string ManualOpType { get; set; }
        public DateTime? ManualOpTime { get; set; }
        public string ManualOpUserCode { get; set; }
        public bool? IsImported { get; set; }
        public bool? IsDeleted { get; set; }
        public string FACCODE { get; set; }
        public DateTime? RptTime { get; set; }
        public string WORKORDER { get; set; }
        public string GeneratorCode { get; set; }
    
        public void Configure(EntityTypeBuilder<b> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasNoKey();

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.AttFile).HasMaxLength(500);

                entityBuilder.Property(e => e.AuditPerson).HasMaxLength(10);

                entityBuilder.Property(e => e.BaseStationAddr).HasMaxLength(300);

                entityBuilder.Property(e => e.BaseStationCode).HasMaxLength(50);

                entityBuilder.Property(e => e.BaseStationCodeManual).HasMaxLength(50);

                entityBuilder.Property(e => e.BaseStationName).HasMaxLength(300);

                entityBuilder.Property(e => e.BaseStationNameManual).HasMaxLength(300);

                entityBuilder.Property(e => e.BaseStationTTCode).HasMaxLength(50);

                entityBuilder.Property(e => e.CellID).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyCode).HasMaxLength(50);

                entityBuilder.Property(e => e.DTUID).HasMaxLength(50);

                entityBuilder.Property(e => e.EmptyFuleConsume).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.Extension).HasMaxLength(100);

                entityBuilder.Property(e => e.FACCODE).HasMaxLength(20);

                entityBuilder.Property(e => e.GENRUNPERIOD).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.GPSPOSITION).HasMaxLength(100);

                entityBuilder.Property(e => e.GenFee).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.GenFeeByHour).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.GenReason).HasMaxLength(100);

                entityBuilder.Property(e => e.GenRecordId).ValueGeneratedOnAdd();

                entityBuilder.Property(e => e.GenStart).HasColumnType("datetime");

                entityBuilder.Property(e => e.GenStop).HasColumnType("datetime");

                entityBuilder.Property(e => e.GeneratorCode).HasMaxLength(50);

                entityBuilder.Property(e => e.GeneratorTypeNo).HasMaxLength(50);

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.KWENERGY).HasColumnType("decimal(18, 3)");

                entityBuilder.Property(e => e.KWpower).HasColumnType("decimal(18, 3)");

                entityBuilder.Property(e => e.LAC).HasMaxLength(50);

                entityBuilder.Property(e => e.LoadFuelConsume).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.ManualOpTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.ManualOpType).HasMaxLength(50);

                entityBuilder.Property(e => e.ManualOpUserCode).HasMaxLength(50);

                entityBuilder.Property(e => e.OilConsume).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.RatedPower).HasColumnType("decimal(18, 2)");

                entityBuilder.Property(e => e.RptTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.RunningPeriod).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.WORKORDER).HasMaxLength(50);

                entityBuilder.Property(e => e.dtuAlias).HasMaxLength(50);
        }

    }
}

